{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport { textEllipsis } from '../../style';\nvar getVerticalInlineStyle = function getVerticalInlineStyle(token) {\n  var _ref;\n  var componentCls = token.componentCls,\n    menuItemHeight = token.menuItemHeight,\n    itemMarginInline = token.itemMarginInline,\n    padding = token.padding,\n    menuArrowSize = token.menuArrowSize,\n    marginXS = token.marginXS,\n    marginXXS = token.marginXXS;\n  var paddingWithArrow = padding + menuArrowSize + marginXS;\n  return _ref = {}, _defineProperty(_ref, \"\".concat(componentCls, \"-item\"), {\n    position: 'relative'\n  }), _defineProperty(_ref, \"\".concat(componentCls, \"-item, \").concat(componentCls, \"-submenu-title\"), {\n    height: menuItemHeight,\n    lineHeight: \"\".concat(menuItemHeight, \"px\"),\n    paddingInline: padding,\n    overflow: 'hidden',\n    textOverflow: 'ellipsis',\n    marginInline: itemMarginInline,\n    marginBlock: marginXXS,\n    width: \"calc(100% - \".concat(itemMarginInline * 2, \"px)\")\n  }), _defineProperty(_ref, \"\".concat(componentCls, \"-submenu\"), {\n    paddingBottom: 0.02\n  }), _defineProperty(_ref, \"> \".concat(componentCls, \"-item,\\n            > \").concat(componentCls, \"-submenu > \").concat(componentCls, \"-submenu-title\"), {\n    height: menuItemHeight,\n    lineHeight: \"\".concat(menuItemHeight, \"px\")\n  }), _defineProperty(_ref, \"\".concat(componentCls, \"-item-group-list \").concat(componentCls, \"-submenu-title,\\n            \").concat(componentCls, \"-submenu-title\"), {\n    paddingInlineEnd: paddingWithArrow\n  }), _ref;\n};\nvar getVerticalStyle = function getVerticalStyle(token) {\n  var _ref2, _$concat$concat, _$concat$concat2, _$concat3, _$concat$concat$con, _tooltip, _$concat5;\n  var componentCls = token.componentCls,\n    iconCls = token.iconCls,\n    menuItemHeight = token.menuItemHeight,\n    colorTextLightSolid = token.colorTextLightSolid,\n    dropdownWidth = token.dropdownWidth,\n    controlHeightLG = token.controlHeightLG,\n    motionDurationMid = token.motionDurationMid,\n    motionEaseOut = token.motionEaseOut,\n    paddingXL = token.paddingXL,\n    fontSizeSM = token.fontSizeSM,\n    fontSizeLG = token.fontSizeLG,\n    motionDurationSlow = token.motionDurationSlow,\n    paddingXS = token.paddingXS,\n    boxShadowSecondary = token.boxShadowSecondary;\n  var inlineItemStyle = {\n    height: menuItemHeight,\n    lineHeight: \"\".concat(menuItemHeight, \"px\"),\n    listStylePosition: 'inside',\n    listStyleType: 'disc'\n  };\n  return [(_ref2 = {}, _defineProperty(_ref2, componentCls, _defineProperty({}, \"&-inline, &-vertical\", Object.assign(_defineProperty({}, \"&\".concat(componentCls, \"-root\"), {\n    boxShadow: 'none'\n  }), getVerticalInlineStyle(token)))), _defineProperty(_ref2, \"\".concat(componentCls, \"-submenu-popup\"), _defineProperty({}, \"\".concat(componentCls, \"-vertical\"), Object.assign(Object.assign({}, getVerticalInlineStyle(token)), {\n    boxShadow: boxShadowSecondary\n  }))), _ref2), // Vertical only\n  _defineProperty({}, \"\".concat(componentCls, \"-submenu-popup \").concat(componentCls, \"-vertical\").concat(componentCls, \"-sub\"), {\n    minWidth: dropdownWidth,\n    maxHeight: \"calc(100vh - \".concat(controlHeightLG * 2.5, \"px)\"),\n    padding: '0',\n    overflow: 'hidden',\n    borderInlineEnd: 0,\n    // https://github.com/ant-design/ant-design/issues/22244\n    // https://github.com/ant-design/ant-design/issues/26812\n    \"&:not([class*='-active'])\": {\n      overflowX: 'hidden',\n      overflowY: 'auto'\n    }\n  }), // Inline Only\n  _defineProperty({}, \"\".concat(componentCls, \"-inline\"), (_$concat3 = {\n    width: '100%'\n  }, _defineProperty(_$concat3, \"&\".concat(componentCls, \"-root\"), _defineProperty({}, \"\".concat(componentCls, \"-item, \").concat(componentCls, \"-submenu-title\"), (_$concat$concat = {\n    display: 'flex',\n    alignItems: 'center',\n    transition: [\"border-color \".concat(motionDurationSlow), \"background \".concat(motionDurationSlow), \"padding \".concat(motionDurationMid, \" \").concat(motionEaseOut)].join(',')\n  }, _defineProperty(_$concat$concat, \"> \".concat(componentCls, \"-title-content\"), {\n    flex: 'auto',\n    minWidth: 0,\n    overflow: 'hidden',\n    textOverflow: 'ellipsis'\n  }), _defineProperty(_$concat$concat, '> *', {\n    flex: 'none'\n  }), _$concat$concat))), _defineProperty(_$concat3, \"\".concat(componentCls, \"-sub\").concat(componentCls, \"-inline\"), (_$concat$concat2 = {\n    padding: 0,\n    border: 0,\n    borderRadius: 0,\n    boxShadow: 'none'\n  }, _defineProperty(_$concat$concat2, \"& > \".concat(componentCls, \"-submenu > \").concat(componentCls, \"-submenu-title\"), inlineItemStyle), _defineProperty(_$concat$concat2, \"& \".concat(componentCls, \"-item-group-title\"), {\n    paddingInlineStart: paddingXL\n  }), _$concat$concat2)), _defineProperty(_$concat3, \"\".concat(componentCls, \"-item\"), inlineItemStyle), _$concat3)), // Inline Collapse Only\n  _defineProperty({}, \"\".concat(componentCls, \"-inline-collapsed\"), (_$concat5 = {\n    width: menuItemHeight * 2\n  }, _defineProperty(_$concat5, \"&\".concat(componentCls, \"-root\"), _defineProperty({}, \"\".concat(componentCls, \"-item, \").concat(componentCls, \"-submenu \").concat(componentCls, \"-submenu-title\"), _defineProperty({}, \"> \".concat(componentCls, \"-inline-collapsed-noicon\"), {\n    fontSize: fontSizeLG,\n    textAlign: 'center'\n  }))), _defineProperty(_$concat5, \"> \".concat(componentCls, \"-item,\\n          > \").concat(componentCls, \"-item-group > \").concat(componentCls, \"-item-group-list > \").concat(componentCls, \"-item,\\n          > \").concat(componentCls, \"-item-group > \").concat(componentCls, \"-item-group-list > \").concat(componentCls, \"-submenu > \").concat(componentCls, \"-submenu-title,\\n          > \").concat(componentCls, \"-submenu > \").concat(componentCls, \"-submenu-title\"), (_$concat$concat$con = {\n    insetInlineStart: 0,\n    paddingInline: \"calc(50% - \".concat(fontSizeSM, \"px)\"),\n    textOverflow: 'clip'\n  }, _defineProperty(_$concat$concat$con, \"\".concat(componentCls, \"-submenu-arrow\"), {\n    opacity: 0\n  }), _defineProperty(_$concat$concat$con, \"\".concat(componentCls, \"-item-icon, \").concat(iconCls), {\n    margin: 0,\n    fontSize: fontSizeLG,\n    lineHeight: \"\".concat(menuItemHeight, \"px\"),\n    '+ span': {\n      display: 'inline-block',\n      opacity: 0\n    }\n  }), _$concat$concat$con)), _defineProperty(_$concat5, \"\".concat(componentCls, \"-item-icon, \").concat(iconCls), {\n    display: 'inline-block'\n  }), _defineProperty(_$concat5, '&-tooltip', (_tooltip = {\n    pointerEvents: 'none'\n  }, _defineProperty(_tooltip, \"\".concat(componentCls, \"-item-icon, \").concat(iconCls), {\n    display: 'none'\n  }), _defineProperty(_tooltip, 'a, a:hover', {\n    color: colorTextLightSolid\n  }), _tooltip)), _defineProperty(_$concat5, \"\".concat(componentCls, \"-item-group-title\"), Object.assign(Object.assign({}, textEllipsis), {\n    paddingInline: paddingXS\n  })), _$concat5))];\n};\nexport default getVerticalStyle;","map":{"version":3,"names":["textEllipsis","getVerticalInlineStyle","token","componentCls","menuItemHeight","itemMarginInline","padding","menuArrowSize","marginXS","marginXXS","paddingWithArrow","position","height","lineHeight","paddingInline","overflow","textOverflow","marginInline","marginBlock","width","paddingBottom","paddingInlineEnd","getVerticalStyle","iconCls","colorTextLightSolid","dropdownWidth","controlHeightLG","motionDurationMid","motionEaseOut","paddingXL","fontSizeSM","fontSizeLG","motionDurationSlow","paddingXS","boxShadowSecondary","inlineItemStyle","listStylePosition","listStyleType","Object","assign","boxShadow","minWidth","maxHeight","borderInlineEnd","overflowX","overflowY","display","alignItems","transition","join","flex","border","borderRadius","paddingInlineStart","fontSize","textAlign","insetInlineStart","opacity","margin","pointerEvents","color"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/menu/style/vertical.js"],"sourcesContent":["import { textEllipsis } from '../../style';\nconst getVerticalInlineStyle = token => {\n  const {\n    componentCls,\n    menuItemHeight,\n    itemMarginInline,\n    padding,\n    menuArrowSize,\n    marginXS,\n    marginXXS\n  } = token;\n  const paddingWithArrow = padding + menuArrowSize + marginXS;\n  return {\n    [`${componentCls}-item`]: {\n      position: 'relative'\n    },\n    [`${componentCls}-item, ${componentCls}-submenu-title`]: {\n      height: menuItemHeight,\n      lineHeight: `${menuItemHeight}px`,\n      paddingInline: padding,\n      overflow: 'hidden',\n      textOverflow: 'ellipsis',\n      marginInline: itemMarginInline,\n      marginBlock: marginXXS,\n      width: `calc(100% - ${itemMarginInline * 2}px)`\n    },\n    // disable margin collapsed\n    [`${componentCls}-submenu`]: {\n      paddingBottom: 0.02\n    },\n    [`> ${componentCls}-item,\n            > ${componentCls}-submenu > ${componentCls}-submenu-title`]: {\n      height: menuItemHeight,\n      lineHeight: `${menuItemHeight}px`\n    },\n    [`${componentCls}-item-group-list ${componentCls}-submenu-title,\n            ${componentCls}-submenu-title`]: {\n      paddingInlineEnd: paddingWithArrow\n    }\n  };\n};\nconst getVerticalStyle = token => {\n  const {\n    componentCls,\n    iconCls,\n    menuItemHeight,\n    colorTextLightSolid,\n    dropdownWidth,\n    controlHeightLG,\n    motionDurationMid,\n    motionEaseOut,\n    paddingXL,\n    fontSizeSM,\n    fontSizeLG,\n    motionDurationSlow,\n    paddingXS,\n    boxShadowSecondary\n  } = token;\n  const inlineItemStyle = {\n    height: menuItemHeight,\n    lineHeight: `${menuItemHeight}px`,\n    listStylePosition: 'inside',\n    listStyleType: 'disc'\n  };\n  return [{\n    [componentCls]: {\n      [`&-inline, &-vertical`]: Object.assign({\n        [`&${componentCls}-root`]: {\n          boxShadow: 'none'\n        }\n      }, getVerticalInlineStyle(token))\n    },\n    [`${componentCls}-submenu-popup`]: {\n      [`${componentCls}-vertical`]: Object.assign(Object.assign({}, getVerticalInlineStyle(token)), {\n        boxShadow: boxShadowSecondary\n      })\n    }\n  },\n  // Vertical only\n  {\n    [`${componentCls}-submenu-popup ${componentCls}-vertical${componentCls}-sub`]: {\n      minWidth: dropdownWidth,\n      maxHeight: `calc(100vh - ${controlHeightLG * 2.5}px)`,\n      padding: '0',\n      overflow: 'hidden',\n      borderInlineEnd: 0,\n      // https://github.com/ant-design/ant-design/issues/22244\n      // https://github.com/ant-design/ant-design/issues/26812\n      \"&:not([class*='-active'])\": {\n        overflowX: 'hidden',\n        overflowY: 'auto'\n      }\n    }\n  },\n  // Inline Only\n  {\n    [`${componentCls}-inline`]: {\n      width: '100%',\n      // Motion enhance for first level\n      [`&${componentCls}-root`]: {\n        [`${componentCls}-item, ${componentCls}-submenu-title`]: {\n          display: 'flex',\n          alignItems: 'center',\n          transition: [`border-color ${motionDurationSlow}`, `background ${motionDurationSlow}`, `padding ${motionDurationMid} ${motionEaseOut}`].join(','),\n          [`> ${componentCls}-title-content`]: {\n            flex: 'auto',\n            minWidth: 0,\n            overflow: 'hidden',\n            textOverflow: 'ellipsis'\n          },\n          '> *': {\n            flex: 'none'\n          }\n        }\n      },\n      // >>>>> Sub\n      [`${componentCls}-sub${componentCls}-inline`]: {\n        padding: 0,\n        border: 0,\n        borderRadius: 0,\n        boxShadow: 'none',\n        [`& > ${componentCls}-submenu > ${componentCls}-submenu-title`]: inlineItemStyle,\n        [`& ${componentCls}-item-group-title`]: {\n          paddingInlineStart: paddingXL\n        }\n      },\n      // >>>>> Item\n      [`${componentCls}-item`]: inlineItemStyle\n    }\n  },\n  // Inline Collapse Only\n  {\n    [`${componentCls}-inline-collapsed`]: {\n      width: menuItemHeight * 2,\n      [`&${componentCls}-root`]: {\n        [`${componentCls}-item, ${componentCls}-submenu ${componentCls}-submenu-title`]: {\n          [`> ${componentCls}-inline-collapsed-noicon`]: {\n            fontSize: fontSizeLG,\n            textAlign: 'center'\n          }\n        }\n      },\n      [`> ${componentCls}-item,\n          > ${componentCls}-item-group > ${componentCls}-item-group-list > ${componentCls}-item,\n          > ${componentCls}-item-group > ${componentCls}-item-group-list > ${componentCls}-submenu > ${componentCls}-submenu-title,\n          > ${componentCls}-submenu > ${componentCls}-submenu-title`]: {\n        insetInlineStart: 0,\n        paddingInline: `calc(50% - ${fontSizeSM}px)`,\n        textOverflow: 'clip',\n        [`${componentCls}-submenu-arrow`]: {\n          opacity: 0\n        },\n        [`${componentCls}-item-icon, ${iconCls}`]: {\n          margin: 0,\n          fontSize: fontSizeLG,\n          lineHeight: `${menuItemHeight}px`,\n          '+ span': {\n            display: 'inline-block',\n            opacity: 0\n          }\n        }\n      },\n      [`${componentCls}-item-icon, ${iconCls}`]: {\n        display: 'inline-block'\n      },\n      '&-tooltip': {\n        pointerEvents: 'none',\n        [`${componentCls}-item-icon, ${iconCls}`]: {\n          display: 'none'\n        },\n        'a, a:hover': {\n          color: colorTextLightSolid\n        }\n      },\n      [`${componentCls}-item-group-title`]: Object.assign(Object.assign({}, textEllipsis), {\n        paddingInline: paddingXS\n      })\n    }\n  }];\n};\nexport default getVerticalStyle;"],"mappings":";AAAA,SAASA,YAAY,QAAQ,aAAa;AAC1C,IAAMC,sBAAsB,GAAG,SAAzBA,sBAAsB,CAAGC,KAAK,EAAI;EAAA;EACtC,IACEC,YAAY,GAOVD,KAAK,CAPPC,YAAY;IACZC,cAAc,GAMZF,KAAK,CANPE,cAAc;IACdC,gBAAgB,GAKdH,KAAK,CALPG,gBAAgB;IAChBC,OAAO,GAILJ,KAAK,CAJPI,OAAO;IACPC,aAAa,GAGXL,KAAK,CAHPK,aAAa;IACbC,QAAQ,GAENN,KAAK,CAFPM,QAAQ;IACRC,SAAS,GACPP,KAAK,CADPO,SAAS;EAEX,IAAMC,gBAAgB,GAAGJ,OAAO,GAAGC,aAAa,GAAGC,QAAQ;EAC3D,kDACML,YAAY,YAAU;IACxBQ,QAAQ,EAAE;EACZ,CAAC,mCACGR,YAAY,oBAAUA,YAAY,qBAAmB;IACvDS,MAAM,EAAER,cAAc;IACtBS,UAAU,YAAKT,cAAc,OAAI;IACjCU,aAAa,EAAER,OAAO;IACtBS,QAAQ,EAAE,QAAQ;IAClBC,YAAY,EAAE,UAAU;IACxBC,YAAY,EAAEZ,gBAAgB;IAC9Ba,WAAW,EA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